package com.cn.dtalk.autoconfiguration;

import com.cn.dtalk.util.HttpUtil;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 钉钉技术文档：https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq
 *
 * @author: WGQ
 * @data: 2020/10/22 17:53
 * @desc:
 */
@EnableConfigurationProperties(DTalkProperties.class)
@Configuration
public class DTalkConfiguration {

    @Bean("DTalkHttpHelper")
    public HttpUtil httpUtil() {
        return new HttpUtil();
    }
}
